import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/double_control/get_all_cycle_change_entity.dart';

GetAllCycleChangeEntity $GetAllCycleChangeEntityFromJson(Map<String, dynamic> json) {
  final GetAllCycleChangeEntity getAllCycleChangeEntity = GetAllCycleChangeEntity();
  final String? hintTextContext1 = jsonConvert.convert<String>(json['hintTextContext1']);
  if (hintTextContext1 != null) {
    getAllCycleChangeEntity.hintTextContext1 = hintTextContext1;
  }
  final String? hintTextContext2 = jsonConvert.convert<String>(json['hintTextContext2']);
  if (hintTextContext2 != null) {
    getAllCycleChangeEntity.hintTextContext2 = hintTextContext2;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getAllCycleChangeEntity.id = id;
  }
  final String? idX = jsonConvert.convert<String>(json['idX']);
  if (idX != null) {
    getAllCycleChangeEntity.idX = idX;
  }
  final String? attribute = jsonConvert.convert<String>(json['attribute']);
  if (attribute != null) {
    getAllCycleChangeEntity.attribute = attribute;
  }
  final String? startTime = jsonConvert.convert<String>(json['startTime']);
  if (startTime != null) {
    getAllCycleChangeEntity.startTime = startTime;
  }
  final String? endTime = jsonConvert.convert<String>(json['endTime']);
  if (endTime != null) {
    getAllCycleChangeEntity.endTime = endTime;
  }
  final String? type = jsonConvert.convert<String>(json['type']);
  if (type != null) {
    getAllCycleChangeEntity.type = type;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getAllCycleChangeEntity.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getAllCycleChangeEntity.createDate = createDate;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getAllCycleChangeEntity.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getAllCycleChangeEntity.updateDate = updateDate;
  }
  final String? checkCycle = jsonConvert.convert<String>(json['checkCycle']);
  if (checkCycle != null) {
    getAllCycleChangeEntity.checkCycle = checkCycle;
  }
  final String? checkCycleUnitName = jsonConvert.convert<String>(json['checkCycleUnitName']);
  if (checkCycleUnitName != null) {
    getAllCycleChangeEntity.checkCycleUnitName = checkCycleUnitName;
  }
  final String? checkCycleUnit = jsonConvert.convert<String>(json['checkCycleUnit']);
  if (checkCycleUnit != null) {
    getAllCycleChangeEntity.checkCycleUnit = checkCycleUnit;
  }
  final bool? isShowInputAnd = jsonConvert.convert<bool>(json['isShowInputAnd']);
  if (isShowInputAnd != null) {
    getAllCycleChangeEntity.isShowInputAnd = isShowInputAnd;
  }
  final bool? isShowTime = jsonConvert.convert<bool>(json['isShowTime']);
  if (isShowTime != null) {
    getAllCycleChangeEntity.isShowTime = isShowTime;
  }
  final bool? isShowSeason = jsonConvert.convert<bool>(json['isShowSeason']);
  if (isShowSeason != null) {
    getAllCycleChangeEntity.isShowSeason = isShowSeason;
  }
  final String? workStartTime = jsonConvert.convert<String>(json['workStartTime']);
  if (workStartTime != null) {
    getAllCycleChangeEntity.workStartTime = workStartTime;
  }
  final String? workEndTime = jsonConvert.convert<String>(json['workEndTime']);
  if (workEndTime != null) {
    getAllCycleChangeEntity.workEndTime = workEndTime;
  }
  final bool? checkboxSelected = jsonConvert.convert<bool>(json['checkboxSelected']);
  if (checkboxSelected != null) {
    getAllCycleChangeEntity.checkboxSelected = checkboxSelected;
  }
  final String? workDayType = jsonConvert.convert<String>(json['workDayType']);
  if (workDayType != null) {
    getAllCycleChangeEntity.workDayType = workDayType;
  }
  final String? workDayTypeName = jsonConvert.convert<String>(json['workDayTypeName']);
  if (workDayTypeName != null) {
    getAllCycleChangeEntity.workDayTypeName = workDayTypeName;
  }
  return getAllCycleChangeEntity;
}

Map<String, dynamic> $GetAllCycleChangeEntityToJson(GetAllCycleChangeEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['hintTextContext1'] = entity.hintTextContext1;
  data['hintTextContext2'] = entity.hintTextContext2;
  data['id'] = entity.id;
  data['idX'] = entity.idX;
  data['attribute'] = entity.attribute;
  data['startTime'] = entity.startTime;
  data['endTime'] = entity.endTime;
  data['type'] = entity.type;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  data['checkCycle'] = entity.checkCycle;
  data['checkCycleUnitName'] = entity.checkCycleUnitName;
  data['checkCycleUnit'] = entity.checkCycleUnit;
  data['isShowInputAnd'] = entity.isShowInputAnd;
  data['isShowTime'] = entity.isShowTime;
  data['isShowSeason'] = entity.isShowSeason;
  data['workStartTime'] = entity.workStartTime;
  data['workEndTime'] = entity.workEndTime;
  data['checkboxSelected'] = entity.checkboxSelected;
  data['workDayType'] = entity.workDayType;
  data['workDayTypeName'] = entity.workDayTypeName;
  return data;
}

extension GetAllCycleChangeEntityExtension on GetAllCycleChangeEntity {
  GetAllCycleChangeEntity copyWith({
    String? hintTextContext1,
    String? hintTextContext2,
    String? id,
    String? idX,
    String? attribute,
    String? startTime,
    String? endTime,
    String? type,
    String? createBy,
    String? createDate,
    String? updateBy,
    String? updateDate,
    String? checkCycle,
    String? checkCycleUnitName,
    String? checkCycleUnit,
    bool? isShowInputAnd,
    bool? isShowTime,
    bool? isShowSeason,
    String? workStartTime,
    String? workEndTime,
    bool? checkboxSelected,
    String? workDayType,
    String? workDayTypeName,
  }) {
    return GetAllCycleChangeEntity()
      ..hintTextContext1 = hintTextContext1 ?? this.hintTextContext1
      ..hintTextContext2 = hintTextContext2 ?? this.hintTextContext2
      ..id = id ?? this.id
      ..idX = idX ?? this.idX
      ..attribute = attribute ?? this.attribute
      ..startTime = startTime ?? this.startTime
      ..endTime = endTime ?? this.endTime
      ..type = type ?? this.type
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate
      ..checkCycle = checkCycle ?? this.checkCycle
      ..checkCycleUnitName = checkCycleUnitName ?? this.checkCycleUnitName
      ..checkCycleUnit = checkCycleUnit ?? this.checkCycleUnit
      ..isShowInputAnd = isShowInputAnd ?? this.isShowInputAnd
      ..isShowTime = isShowTime ?? this.isShowTime
      ..isShowSeason = isShowSeason ?? this.isShowSeason
      ..workStartTime = workStartTime ?? this.workStartTime
      ..workEndTime = workEndTime ?? this.workEndTime
      ..checkboxSelected = checkboxSelected ?? this.checkboxSelected
      ..workDayType = workDayType ?? this.workDayType
      ..workDayTypeName = workDayTypeName ?? this.workDayTypeName;
  }
}
